import Layout from '@/layout'

const materialPurchase = {
  path: '/material-purchase',
  component: Layout,
  redirct: 'material-purchase/purchase-plan',
  name: '采购管理',
  meta: { title: '采购管理', icon: 'el-icon-s-goods', permissions: ['4', '1', '2'] },
  children: [
    {
      path: 'purchaseplan',
      name: '采购计划申请',
      component: () => import('@/views/material-purchase/purchase-plan'),
      meta: { title: '采购计划申请', icon: 'el-icon-document-add', permissions: ['4'] }
    },
    {
      path: 'depaudit',
      name: '部门领导审批',
      component: () => import('@/views/material-purchase/department-audit'),
      meta: { title: '部门领导审批', icon: 'el-icon-s-check', permissions: ['1'] }
    },
    {
      path: 'unitaudit',
      name: '单位领导审核',
      component: () => import('@/views/material-purchase/unit-audit'),
      meta: { title: '单位领导审核', icon: 'el-icon-s-check', permissions: ['2'] }
    },
    {
      path: 'derivefile',
      name: '导出文档',
      component: () => import('@/views/material-purchase/derive-file'),
      meta: { title: '导出文档', icon: 'el-icon-upload', permissions: ['2'] }
    }
  ]
}

export default materialPurchase

